<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>所有表单</a></li>
        <li class=""><a href="{:url('Form/add')}">添加表单</a></li>

    </ul>
    <form action="" method="post" class="margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="40">ID</th>
                <th>表单名称</th>
                <th>缩略图</th>
                <th>作者</th>
                <th>描述</th>
                <th width="150">{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="forms" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.pic}</td>
                    <td>{$vo.author}</td>
                    <td>{$vo.desc}</td>
                    <td>
                        <a href="{:url('Form/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                        <a href="{:url('Form/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>